<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>小马网-以信任促成交易</title>
        <meta name="description" content="小马诚信中国服务商官网 安全联盟认证，安全可信网站认证，安全诚信网站认证，中国电子商务协会授权服务中心。小马诚信中国服务商是腾讯投资的一款专注于互联网风控和企业信誉征信的产品，提供QQ可信名片、可信网站认证、诚信网站认证、可信微站和品牌保护服务。" />
        <meta name="keywords" content="小马诚信中国服务商,品牌保护,安全联盟,免费网站认证,安全联盟认证,诚信网站认证,可信网站认证,企业征信,企业信誉认证,QQ可信名片,信誉V站,可信微站"/>

        <link rel="stylesheet" type="text/css" href="{{ asset('css/base.css') }}">
        <link rel="stylesheet" type="text/css" href="{{ asset('css/index.css') }}" media="all">
        <link rel="stylesheet" type="text/css" href="{{ asset('css/superslide.css') }}"/>
        <link rel="stylesheet" type="text/css" href="{{ asset('css/cert.css') }}"/>
        <link rel="shortcut icon" href="{{ asset('img/icon/favicon.ico') }}">
        <style type="text/css">
            .report-date table{text-align: center;width: 100%;}
            .report-date tr{height: 40px;line-height: 40px;color: #808080;}
            .report-date tr th{color: #3B3B3B;padding: 0 10px;border: 1px solid #eee;background: #49A0EF;color: #fff;font-size: 16px;font-weight: 500;}
            .report-date tr td{padding: 0 10px;border: 1px solid #eee;}
            /*.report-date tr+tr:hover{background: #49A0EF;color: #fff;cursor: pointer;}*/
            .report-date tr:nth-child(odd){background:#F7F7F7;}

        </style>
    </head>
    <body class="p_mng">
        <div class="m-header-mng cf">
            <h1 class="fl m-logo pt15">
                <a href="/">
                    <img class="vam" width="46" height="46" src="{{ asset('img/index/LOGO.png')}}" alt="小马诚信中国服务商" />
                    <span class="fs18 dib vam">诚信用户中心</span>
                </a>
            </h1>
            <div class="back_page fl m_back_page">
                <a href="/"><i class="f_ppb">&#xe630;</i>返回小马诚信中国服务商首页</a>
            </div>
            <div class="fr" id="userAccount" data-href="/user_account/">
                @if (Auth::check())
                <div class="m-acount fr pr">
                    <strong class="_hd"><span><i class="f_ppb"></i></span></strong>
                    <ul class="pa r0 t100p wsn oh trans">
                        <li class="_user"><strong>{{Auth::user()->name}}</strong></li>
                        <li><a href="/cert">订单列表</a></li>
                       <li><a href="{{ route('logout') }}" onclick="event.preventDefault();
                             document.getElementById('logout-form').submit();">退出账号</a>
                       <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                           {{ csrf_field() }}
                       </form>
                    </li>
                    </ul>
                </div>
                @endif
            </div>
        </div>

        <i class="i_mng_side_bg"></i>
        <div id="manage_wrap" class="clearfix">
            @include('web.accounts.siderbar')
            <div class="manage_wrap">
                <div class="report-date">
                    <table border="1" cellspacing="0" cellpadding="0">
                        <tr>
                            <th width="3%">id</th>
                            <th width="10%">订单名称</th>
                            <th width="10%">订单状态</th>
                            <th width="10%">订单号</th>
                            <th width="8%">年限</th>
                            <th width="7%">联系人</th>
                            <th width="12%">网站类型</th>
                            <!--<th width="10%">电话</th>-->
                            <th width="8%">操作</th>
                        </tr>
                        @foreach ($order as $val)
                        <tr>
                            <td>{{$val->id}}</td>
                            <td>{{$val->order_name}}</td>
                            <td> @if ($val->order_status === 0)
                                等待审核
                                @elseif ($val->order_status === 1)
                                初审通过待支付
                                @elseif ($val->order_status === 2)
                                初审失败
                                @elseif ($val->order_status === 3)
                               支付成功提交复审资料
                                @elseif ($val->order_status === 4)
                                复审资料提交待复审
                                @elseif ($val->order_status === 5)
                                复审失败
                                @elseif ($val->order_status === 6)
                                复审成功
                                @else
                                暂无数据
                                @endif
                            </td>
                            <td>{{$val->sn}}</td>
                            <td>{{$val['year']}}</td>
                            <td>{{$val['contacts_name']}}</td>
                            <td>@if($val['order_type'] == 0)
                                官网认证
                                @else
                                企业认证
                                @endif
                            </td>
                            <!--<td>{{$val['contacts_phone']}}</td>-->
                            <td>
                                @if ($val->order_status === 0)
                                <a href="" style=" padding:5px 10px; background: #49A0EF; color: #fff; border-radius: 4px;font-size: 12px">等待审核</a>
                                @elseif ($val->order_status === 1)
                                初审通过
                                <br />
                                <a href="{{Url('pay/order_pay')}}?id={{$val['sn']}}" style=" padding:5px 10px; background: #49A0EF; color: #fff; border-radius: 4px;font-size: 12px">待支付</a>
                                @elseif ($val->order_status === 2)
                                <a href="" style=" padding:5px 10px; background: #49A0EF; color: #fff; border-radius: 4px;font-size: 12px">初审失败</a>
                                @elseif ($val->order_status === 3)
                                <a href="" style=" padding:5px 10px; background: #49A0EF; color: #fff; border-radius: 4px;font-size: 12px">支付成功</a>
                                <br />
                                @if($val->order_type ==0)
                                <a href="{{Url('cert/material')}}?order_id={{$val['id']}}" title='官网' tap='官网'>填写复审资料</a>
                                 @else
                                <a href="{{Url('cert/certification')}}?order_id={{$val['id']}}"tap='企业'>填写复审资料</a>
                                 @endif
                                @elseif ($val->order_status === 4)
                                <a href="" style=" padding:5px 10px; background: #49A0EF; color: #fff; border-radius: 4px;font-size: 12px">复审资料提交待复审</a>
                                @elseif ($val->order_status === 5)
                                <a href="" style=" padding:5px 10px; background: #49A0EF; color: #fff; border-radius: 4px;font-size: 12px">复审失败</a>
                                @elseif ($val->order_status === 6)
                                <a href="" style=" padding:5px 10px; background: #49A0EF; color: #fff; border-radius: 4px;font-size: 12px">复审成功</a>
                                @else
                                暂无数据
                                @endif
                            </td>
                        </tr>
                        @endforeach
                    </table>
                </div>
                <div class="no_site_todo">
                    <div>还没有任何企业官网或企业实名得验证哦。</div>
                    <a class="kiss_btn kiss_sbtn_red" href="{{route('trial')}}">立即申请诚信验证</a>
                </div>
                <div class="footer_ph"></div>

            </div>
        </div>

        <div id="modify_years_box" class="kiss_modal phone-auth-modify-year" style="width:300px;">
            <div class="kiss_modal_hd">修改年限</div>
            <div class="kiss_modal_con">
                <form id="modify_year_form" method="POST" action="/cert/modify_order_payment/">
                    <input type='hidden' name='csrfmiddlewaretoken' value='vSVxxcimDCD1IEkRgBmVybEMUfgrZ1fQ' />
                    <div><input type="hidden" value="" name="order_id"></div>
                    <div class="modal-row">验证年限：
                        <select id="modify_cert_year" name="modify_cert_year">
                        </select>
                    </div>
                </form>
            </div>
            <div class="kiss_modal_foot">
                <div class="inner clearfix">
                    <a href="javascript:;" class="kiss_mod_btn kiss_mod_cancel">取消</a>
                    <a href="javascript:;" class="kiss_mod_btn kiss_mod_ok" id="modify_year_submit">确定</a>
                </div>
            </div>
        </div>

        <div style="display: none">
            <div id="Dissatisy_box" class="kiss_modal modal_todo modal_warn" style="width:330px;">
                <div class="kiss_modal_hd"><i></i>提交审核前你还需要完善以下内容：</div>
                <div class="kiss_modal_con">
                    <div class="dissatisfy">
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>

</body>
</html>
